<?php
/**
 *  Generic Abstract Model: per-row table access
 *
 *  Similar to Active Record pattern, in which the record is implemented in Item,
 *      and the data access in Action.
 *  Implement the common methods of selecting items and executing actions
 *
 */
namespace Test\modules\News;
use Yz_Module_Interface;

class Model_Stream
    extends \Yz_Model_Abstract
{

    const SOURCE_NAME = 'yz_news_streams';

    /** The configuration of model's properties
     *  @var string
     */
    protected static $propertyConfig = '
        id: id
        title: string
    ';



    /** Model's constructor requires module
     *  @param Yz_Module_Interface $module
     */
    protected function __construct( Yz_Module_Interface $module )
    {
        debug();
        parent::__construct($module);
        $d =& $this->__dict__;
        $d['id']     = new \Yz_Property_Id();
        $d['title']  = new \Yz_Property_String();
    }

}
